<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<script type="text/javascript">
	$(function() {
		parent.$.messager.progress('close');

		$('#form').form({
			url : '/residenceController/dispatchPropertyFee',
			onSubmit : function() {
				parent.$.messager.progress({
					title : '提示',
					text : '数据处理中，请稍后....'
				});
				var isValid = $(this).form('validate');
				if (!isValid) {
					parent.$.messager.progress('close');
				}
				return isValid;
			},
			success : function(result) {
				parent.$.messager.progress('close');
				try{
					result = $.parseJSON(result);
					if (result.success) {
						parent.$.modalDialog.openner_dataGrid.datagrid('reload');
						parent.$.modalDialog.handler.dialog('close');
					} else{
						parent.$.messager.alert("提示",result.msg, 'info');
					}
				} catch(e){
						parent.$.messager.alert("提示",result, 'info');
				}
			}
		});
	});
</script>
<div class="easyui-layout" data-options="fit:true,border:false">
	<div data-options="region:'center',border:false" title="" style="overflow: hidden;">
		<form id="form" method="post">
			<input name="id" type="hidden" class="span2" value="${fee.id }" readonly="readonly"/>
			<input name="residenceId" type="hidden" class="span2" value="${fee.residenceId }" readonly="readonly"/>
			<table class="table table-hover table-condensed">
				<tr>
					<th>小区名字</th>
					<td><input name="residenceName" type="text" placeholder="小区名"   style="width:340px" class="easyui-validatebox span2" data-options="required:true" value="${residence.name }" readonly="readonly"></td>
				</tr>
				<tr>
					<th>物业费标识</th>
					<td><input name="name" type="text" placeholder="物业费标识"   style="width:340px"class="easyui-validatebox span2" data-options="required:true" value="${fee.name }" ></td>
				</tr>
				<tr>
					<th> 基础费用（元/月/平米）</th>
					<td><input name="showBaseFee" type="text" placeholder="基础费用（元/月/平米）"   style="width:340px" class="easyui-numberbox" data-options="precision:2,required:true" value="${fee.showBaseFee }" ></td>
				</tr>
				<tr>
					<th> 其他费用（元/月）</th>
					<td><input name="showOtherFee" type="text" placeholder="其他费用（元/月）"    style="width:340px"class="easyui-numberbox" data-options="precision:2,required:true" value="${fee.showOtherFee }"></td>
				</tr>
				<tr>
					<th> 费用说明</th>
					<td>
						<textarea name="remark"   style="width:340px"  data-options="required:true">${fee.remark }</textarea>
					</td>
				</tr>
			</table>
		</form>
	</div>
</div>